export interface OnFetchError {
  url: string;
  status: number;
  statusText: string;
  method: string;
  body: any;
  elapsedTime: number;
}

export interface OnBeforeOptions {
  url: string;
  method: string;
  options?: RequestInit | string;
}

export interface InterceptFetchType {
  appId: string;
  pagePath: string;
  onBefore: (data: OnBeforeOptions) => void;
  onAfter: (res: Response) => void;
  onError: (error: OnFetchError) => void;
}
